{include file=top.html}
<div id="page-store" class="page-store w" style="margin-bottom:10px; ">
        <!--common bar start-->
		<div class="bar-wrap">
			<div class="top-bar"><a href="javascript:pageBack();" class="pageback"><span></span></a>
		<div class="store-search">
			<form id="store-search-form">
				<input name="keyword" type="text" class="kw" placeholder="搜索本店的商品"/>
				<input type="hidden" name="app" value="store" />
				<input type="hidden" name="act" value="search" />
				<input type="hidden" name="id" value="{$store.store_id}" />
				<p><a href="javascript:;" onClick="$('#store-search-form').submit();" class="submit"></a></p>
			</form>
		</div>
		<a  class="page-store-more J_show_cate"><span></span></a> </div>
		</div>
		<!--common bar end-->
		<!--{if $searched_goods}-->
		<div style="border-top:0px;" class="search-goods goods-model-si">
			<h3>{$search_name}</h3>
			<ul class="clearfix">
				<!--{foreach from=$searched_goods item=ng name=fe_ng}-->
				<li>
					<!--{foreach from=$ng item=ngoods name=fe_ngoods}-->
					<div class="item pb10">
					<div {if $smarty.foreach.fe_ngoods.iteration % 2 eq 0}style="margin-left:5px;margin-right:0rem;"{/if} class="wrap">
                    	<div class="wrap2">
                            <div class="pic"><a href="{url app=goods&id=$ngoods.goods_id}"><img src="{$ngoods.default_image}" /></a></div>
                            <h3><a href="{url app=goods&id=$ngoods.goods_id}">{$ngoods.goods_name|escape}</a></h3>
                            <p>￥{$ngoods.price}</p>
                        </div>
					</div>
				</div>
					<!--{/foreach}-->
				</li>
				<!--{/foreach}-->
			</ul>
		</div>
         <div class="line-background2"></div>
		{include file=page.bottom.html}
		<div class="line-background2"></div>
        <!--{else}-->
        <div style="text-align:center;line-height:100px;font-size:14px;" class="no-goods page-body">
        	{$lang.no_records}
        </div>
		<!--{/if}-->
</div>
<div id="pageslide" class="J_masker"></div>
<div id="cate-model" class="J_hide_box">
	<div class="wrap screen-height">
        <ul class="store-cate J_store-cate">
            <li><a href="{url app=store&id=$store.store_id&act=search}">{$lang.all_goods}</a></li>
            <!--{foreach from=$store.store_gcates item=gcategory}--> 
            <li> <a href="javascript:;">{$gcategory.value|escape}<i class="icon-open"></i></a>
                <ul class="list">
                    <!--{foreach from=$gcategory.children item=child_gcategory}-->
                    <li><a href="{url app=store&id=$store.store_id&act=search&cate_id=$child_gcategory.id}">{$child_gcategory.value|escape}</a></li>
                    <!--{/foreach}-->
                </ul>
            </li>
            <!--{/foreach}-->
        </ul>
        <p class="close"><a href="javascript:$.pageslide.close()"></a></p>
    </div>
</div>
<script type="text/javascript">
		$('.J_store-cate li a').click(function(){
			$(this).parent('li').find('.list').toggle();
			var c = $(this).parent('li').find('i').attr('class');
			if(c == 'icon-open')
			{
				$(this).parent('li').find('i').attr('class','icon-close');
			}
			else
			{
				$(this).parent('li').find('i').attr('class','icon-open');
			}
		});
		var closeBtnTop =  window.screen.availHeight/2-50;
		$('#cate-model .close').css('top',closeBtnTop+'px');
		$('#cate-model .close').click(function(){
			closePageSlide();
		});
		$('.J_masker').click(function(){
			closePageSlide();
		});
		$('.J_show_cate').click(function(){
			$('.J_masker').animate({right:'0'});
			$('.J_hide_box').show().animate({right:'0'},800);
		});
		function closePageSlide()
		{
			$('.J_masker').animate({right:'-1699px'});
			$('.J_hide_box').animate({right:'-100%'},800).hide();
		}
	</script>
{include file=footer.html}